home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000360_harfst@cms-stl.com_Fri Feb 8 16:54:40 EST 2002.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
2KB
|
50 lines
Article: 13202 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!iad-peer.news.verio.net!news.verio.net!washdc3-snh1.gtei.net!news.gtei.net!feeder.qis.net!sn-xit-02!supernews.com!postnews1.google.com!not-for-mail
From: harfst@cms-stl.com (David L. Harfst)
Newsgroups: comp.protocols.kermit.misc
Subject: if syntax change
Date: 8 Feb 2002 13:36:13 -0800
Organization: http://groups.google.com/
Lines: 32
Message-ID: <26dc2188.0202081336.79eb8459@posting.google.com>
NNTP-Posting-Host: 12.75.79.19
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1013204175 21258 127.0.0.1 (8 Feb 2002 21:36:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 8 Feb 2002 21:36:15 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13202
Hi,
I have the following block of code which runs fine on
C-Kermit 6.0.192 on HP-UX 10.20:
xif EQUAL \$(SPEED) 14400 {
# +MS=10 - Limits the connection speed to 14.4 KBaud
set modem command Init-string AT&F0+MS=10M0X4V1S95=41\{13}
}
I'm trying to port this script to Linux, on which I'm
running C-Kermit 8.0.200 and RedHat 7.2.
?Invalid: xif EQUAL \$(SPEED) 14400 {, set modem command
Init-string AT&F0+MS=10M0X4V1S95=41\{13}
I know xif is obsolete, but the same error occurs with 'if'.
The "set modem command Init-string" command is valid, as it works
outside the "if" block. The "if" block also works if "echo test" is
substituted for the "set modem command Init-string" command.
I've tracked it down to the "}" at the end of the command. It seems
that this is getting confused with the "}" closing the block.
If I put a \ in front of it, the block runs fine, but the string
sent to the modem has ends with "\{13\}}", which is invalid.
This looks like a bug to me. Is there a way to do this inside
of a block without running into this problem?
Thanks.